﻿using Shop.Model.DB;
using Shop.RemoteModel;
using Shop.RemoteModel.Coupon.Model;
using WeDonekRpc.Model;

namespace Shop.Collect
{
    public interface ICouponCollect
    {
        long Add (CouponSet data);
        void CheckStatus (long id, CouponStatus[] status);
        void Delete (DBShopCoupon coupon);
        bool Enable (DBShopCoupon coupon);
        DBShopCoupon Get (long id);
        bool Offshelf (DBShopCoupon coupon);
        Result[] Query<Result> (CouponQueryParam query, IBasicPage paging, out int count) where Result : class;
        bool Set (DBShopCoupon coupon, CouponSet data);
        bool Stop (DBShopCoupon coupon);
    }
}